<?php
/**
 *
 * PHP versions 4 and 5
 *
 * CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
 * Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org)
 *
 * Licensed under The MIT License
 * Redistributions of files must retain the above copyright notice.
 *
 * @copyright     Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org)
 * @link          http://cakephp.org CakePHP(tm) Project
 * @package       cake
 * @subpackage    cake.cake.libs.view.templates.layouts
 * @since         CakePHP(tm) v 0.10.0.1076
 * @license       MIT License (http://www.opensource.org/licenses/mit-license.php)
 */
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <?php echo $this->Html->charset(); ?>
        <title>
            <?php __('Sistema Festilu'); ?>
            <?php //echo $title_for_layout; ?>
        </title>
        <?php
        echo $this->Html->meta('icon');

        echo $this->Html->css('style');
        echo $this->Html->css('menu');
        echo $this->Html->css('filter_form');
        echo $this->Html->css('cake.generic');
        echo $this->Html->css('ui-lightness/jquery-ui-1.8.16.custom');
        echo $javascript->link('jquery-1.6.2.min');
        echo $javascript->link('jquery-ui-1.8.16.custom.min');
        echo $javascript->link('jquery.ui.datepicker-es');
        echo $javascript->link('jquery.validate.min');

        echo $scripts_for_layout;
        ?>
    </head>
    <body>
        <div id="container">
            <div id="header">
                <?php
                echo $this->Html->link(
                $this->Html->image('festilu.png', array('alt' => 'Festilu Show Infantiles', 'height' => '80')), SITE_URL, array('escape' => false)
                );

                ?>
                <?php echo $this->Html->image('winnie_pooh.gif', array('alt' => 'Festilu Show Infantiles', 'height' => '80')); ?>
                <?php 
                echo $this->Session->flash(); 
                echo $this->Session->flash('auth');?>
            </div>
            <div class="separator"></div>
            <div id="content">
                <div class="contenido login">
                    <?php echo $content_for_layout; ?>
                </div>
            </div>
            <div class="separator"></div>
            <div id="footer">
                <?php
                $imagenes_footer = array(0=>'donalt.png', 1=>'goofy.png', 2=>'june.png', 3=>'mickey.png', 4=>'pluto.png', 5=>'woody.png', 6=>'minnie.png', 7=>'beast.png', 8=>'daisy.png', 9=>'buzz.png', 10=>'kitty.gif');
//                $imagenes_footer = array(0=>'kitty.gif');
                $rand = rand(0, count($imagenes_footer)-1);
                echo $this->Html->image($imagenes_footer[$rand], array('alt' => 'Festilu Show Infantiles', 'height' => '45'));
                ?>
            </div>
        </div>
        <?php echo $this->element('sql_dump'); ?>
        <div class="fondo"></div>
    </body>
</html>